package org.jeecg.glr.service;


import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.glr.entity.GlrRadio;
import org.jeecg.glr.entity.GlrVideo;
import org.jeecg.glr.entity.GlrVideoYs;

import java.util.List;
import java.util.Map;

/**
 * @Description: 视频萤石
 * @Author: jeecg-boot
 * @Date:   2020-02-11
 * @Version: V1.0
 */
public interface IGlrVideoYsService extends IService<GlrVideoYs> {

    String getToken(GlrVideoYs entity);

    String getToken(String videoYsId);
    GlrVideoYs  getGlrVideoYsByCode(String code);
    void updateGlrVideoStatus(GlrVideo entity);

    void updateGlrVideoStatus(GlrVideo domain,GlrVideoYs glrVideoYs);

    String getStatus(GlrVideo entity, String stACCESSTOKEN);

    List<Map<String, Object>> doGetListForJdbc(String sqlStr);

    JSONObject getAddress(String videoId, String stACCESSTOKEN);

    int insertSql(String sql);

    int updateSql(String sql);

    int deleteSql(String sql);

    void updateBatchSql(List<String> sqlList);

    GlrVideoYs getVideoByCode(String videoYsCode);
}
